#include "adddialog.h"
#include "ui_adddialog.h"

addDialog::addDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::addDialog)
{
    ui->setupUi(this);
    this->setWindowModality(Qt::ApplicationModal);
    this->setWindowTitle("设置");
}

addDialog::~addDialog()
{
    delete ui;
}

void addDialog::on_lineEdit_textChanged(const QString &arg1)
{
    emit sendText(arg1);
}

void addDialog::on_buttonBox_accepted()
{
    emit addNow();
    ui->lineEdit->clear();
}
